import os
import pandas as pd
from check import process_path

files = os.listdir("data")
for file in files:
    df = pd.read_csv(os.path.join("data", file))
    df = df[df.OBJECT_TYPE == 'AGENT']
    path = df[['X', 'Y']].values
    result = process_path(path)
    if result is not None and result[3] < 0:
        print("file", file)
        print("path", path)
        print("result", result)
        break